import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/src/widgets/framework.dart';

class VisitorCheckDetailViewModel extends BaseViewModel{
  VisitorCheckDetailViewModel(BuildContext context) : super(context);

  var canClick = true;

  void pass(){
    showLoadingDialog();
    Future.delayed(Duration(seconds: 1),(){
      hideDialog();
      showToast("审核通过");
      canClick = false;
      notifyListeners();
    });
  }

  void refuse(){
    showLoadingDialog();
    Future.delayed(Duration(seconds: 1),(){
      hideDialog();
      showToast("拒绝来访");
      canClick = false;
      notifyListeners();
    });
  }
}